<template>
  <div id="app">
    <HeaderVue />
    <!-- 这里显示路由部分 -->
    <router-view></router-view>
    <FooterVue v-show="$route.meta.show"></FooterVue>
  </div>
</template>

<script>
import HeaderVue from "./components/Header/Header.vue";
import FooterVue from "./components/Footer/Footer.vue";

export default {
  name: "App",
  components: {
    HeaderVue,
    FooterVue,
  },
  mounted() {
    this.$store.dispatch("categoryList");
  },
};
</script>

<style>
</style>
